package com.xieyingwangluo.yxpart.service.impl;

import com.xieyingwangluo.yxpart.entity.MerchantModel;
import com.xieyingwangluo.yxpart.mapper.MerchantMapper;
import com.xieyingwangluo.yxpart.service.MerchantService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MerchantServiceImpl implements MerchantService {
    @Autowired
    private MerchantMapper merchantMapper;
    @Override
    public int add(MerchantModel merchantModel) {
        return merchantMapper.add(merchantModel);
    }

    @Override
    public int del(String noid) {
        return merchantMapper.del(noid);
    }

    @Override
    public int update(MerchantModel merchantModel) {
        return merchantMapper.update(merchantModel);
    }

    @Override
    public MerchantModel selO(String noid) {
        return merchantMapper.selO(noid);
    }

    @Override
    public List<MerchantModel> selA(MerchantModel merchantModel) {
        return merchantMapper.selA(merchantModel);
    }

    @Override
    public MerchantModel check(String tel, String pwd) { return merchantMapper.check(tel, pwd); }
}
